package com.donger.business.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.donger.business.upms.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门管理 Mapper 接口
 * </p>
 *
 * @author xyx
 * @since 2019-01-12
 */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    /**
     * 查询子部门ID
     *
     * @param parentId 父部门ID
     * @return 子部门ID列表
     */
    List<Long> queryDeptIdList(@Param("parentId") Long parentId);
}
